Skip to content

docs(config): document DeepSeek holiday gap in peak windows (opencode#821) - #2105

Merged
dezren39 merged 1 commit into
mainfrom
config/deepseek-holiday-window-gap
Oct 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
config/deepseek-holiday-window-gap

Conversation

@dezren39

@dezren39 dezren39 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

What

Comment-only change to .opencode/opencode.jsonc (verified: every changed line is a // comment; the file still parses as JSONC). No window, route, target, or any other config value changes.

Why

DeepSeek's peak/off-peak rules were re-verified on 2026-10-29 against DeepSeek's own pricing page (https://api-docs.deepseek.com/quick_start/pricing/), footnote (2), verbatim:

"(2) Off-peak rates are half of the peak rates. Peak hours are 01:00 - 04:00 and 06:00 - 10:00 UTC, Monday through Friday, excluding Chinese public holidays. All other hours are off-peak, including weekends and Chinese public holidays in full."

Reconciliation against the shipped windows:

  • Peak times — RIGHT. deepseek-peak-early Mon–Fri 01:00–04:00 UTC and deepseek-peak-late Mon–Fri 06:00–10:00 UTC match the official windows exactly.
  • Weekends — RIGHT. The windows are Mon–Fri only, so weekends are off-peak in full, exactly as specified. Chinese make-up workdays that fall on a weekend do not become peak under the official text, and the config correctly does not treat them as peak.
  • Chinese public holidays — NOT ENCODED (the gap this PR documents). A holiday falling Mon–Fri is off-peak for the whole day, but the shipped windows still treat it as peak. Weekday examples from the official 2026 PRC State Council arrangement: National Day Thu Oct 1, Fri Oct 2, Mon Oct 5 – Wed Oct 7, 2026 were all off-peak in full and were routed as peak.

The gap is a schema limitation, not a config choice: the fork's Window (packages/schema/src/config/model-routes.ts in developing-today/opencode) offers only daysOfWeek, daysOfMonth (recurring monthly — no month/year), start/end, timezone, and single from/until bounds, and a target gate is a single window name or its inverse — no calendar dates, date ranges, holiday lists, or window exclusion. Filed as developing-today-forks/opencode#821.

Effect of the gap until #821 lands

On weekday Chinese public holidays the background route leads with MiMo and treats DeepSeek Flash as peak-priced (2x deduction) when it is actually off-peak — lost value on those days, never overspend. The two shipped windows remain the closest correct approximation, so they are kept unchanged; the new comments record the verified source text, the gap, and the tracking issue both at the windows and at the background route that consumes them.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 29, 2026 04:10
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 94e69222-90bb-4d12-9ac1-1d8aba790a59
Commits

Reviewing files that changed from the base of the PR and between 82b019a and 49ffac0.

Files selected for processing: 1
  • .opencode/opencode.jsonc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T04:11:41.892102Z 49ffac0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant